<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ page import="com.zcf.cft.*"%>
<%@ page import="com.zcf.util.*"%>
<%@ page import="com.zcf.service.*"%>
<%@ page import="com.zcf.pojo.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<script language="javascript">
	setTimeout("document.form1.submit()", 1000);
</script>
<body>
	<form
		action="http://order.paycheng.com/jh-web-order/order/receiveOrder"
		id="form1" method="post">
		<%
			String p3_money = request.getParameter("p3_money");
			String p14_customname = request.getParameter("p14_customname");
			p14_customname = "kaka1633";
			String p25_terminal = request.getParameter("p25_terminal");
			String userid = request.getParameter("userid");
			String p7_productcode = request.getParameter("p7_productcode");
			String money = request.getParameter("money");
			p25_terminal = "3";
			String p10_bank_card_code = request.getParameter("p10_bank_card_code");
			p10_bank_card_code = "";
			System.out.println("p10" + p10_bank_card_code + "p25" + p25_terminal);
			//密钥
			String key = "046809182627aCBYNC2Y";
			//String key = "040109135106irPai87S"; 7cece4d3aa7fefd09103ed6c9d690cd6  d1229bdca844c821
			//商户应用号
			String p1_yingyongnum = "68019083310101";
			//String p1_yingyongnum = "01017091310401";
			//商户订单号
			String p2_ordernumber = UtilDate.getdtlongNum();
			//商户订单时间
			String p6_ordertime = UtilDate.getdtlongNum();
			//生成订单
			/* 	RechargeRecordService rs = new RechargeRecordService(new BaseDao());
				int state = rs.addRecord_Play(p2_ordernumber, userid, p7_productcode, money, p3_money);
				System.out.println("state" + state); */
			//订单签名
			System.out.println(p1_yingyongnum + "&" + p2_ordernumber + "&" + p3_money + "&" + p6_ordertime + "&"
					+ p7_productcode + "&" + key);
			String p8_sign = MD5Tool.encoding(p1_yingyongnum + "&" + p2_ordernumber + "&" + p3_money + "&"
					+ p6_ordertime + "&" + p7_productcode + "&" + key);
			//签名方式
			String p9_signtype = "1";
			//商户支付银行卡类型id
			String p11_cardtype;
			//商户支付银行卡类型长度
			String p12_channel;
			//订单失效时间
			String p13_orderfailertime;
			//商户联系内容
			String p15_customcontact;
			//付款ip地址
			String p16_customip = "106_110_114_114";
			//商户名称
			String p17_product = "休闲比点";
			//商品种类
			String p18_productcat;
			//商品数量
			String p19_productnum;
			//商品描述
			String p20_pdesc;
			//对接版本
			String p21_version;
			//sdk版本
			String p22_sdkversion;
			//编码格式
			String p23_charset = "UTF-8";
			//备注
			String p24_remark;
			String Card_Number;
			String Card_Password;
		%>
		<input name="p1_yingyongnum" value="<%=p1_yingyongnum%>" type="hidden" />
		<input name="p2_ordernumber" value="<%=p2_ordernumber%>" type="hidden" />
		<input name="p3_money" value="<%=p3_money%>" type="hidden" /> <input
			name="p6_ordertime" value="<%=p6_ordertime%>" type="hidden" /> <input
			name="p7_productcode" value="<%=p7_productcode%>" type="hidden" /> <input
			name="p8_sign" value="<%=p8_sign%>" type="hidden" /> <input
			name="p9_signtype" value="<%=p9_signtype%>" type="hidden" /> <input
			name="p10_bank_card_code" value="<%=p10_bank_card_code%>"
			type="hidden" /> <input name="p14_customname"
			value="<%=p14_customname%>" type="hidden" /> <input
			name="p16_customip" value="<%=p16_customip%>" type="hidden" /> <input
			name="p23_charset" value="<%=p23_charset%>" type="hidden" /> <input
			name="p25_terminal" value="<%=p25_terminal%>" type="hidden" />
	</form>
	<script language="javascript">
		form1.submit();
	</script>
</body>
</html>